"use strict";
var __extends = (this && this.__extends) || (function () {
    var extendStatics = Object.setPrototypeOf ||
        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var fruit_1 = __importDefault(require("./fruit"));
var Apple = /** @class */ (function (_super) {
    __extends(Apple, _super);
    function Apple(name, weight, effect) {
        var _this = _super.call(this, name, weight, effect) || this;
        _this.name = name;
        _this.weight = weight;
        _this.effect = effect;
        return _this;
    }
    Apple.prototype.NutritionalValue = function () {
        console.log("吃" + this.weight + "公斤" + this.name + this.effect);
    };
    return Apple;
}(fruit_1.default));
exports.default = Apple;
